package com.zcp.dao;

import com.zcp.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentDAO extends BaseDAO<Student,String>{
    List<Student> find(@Param("col") String searchCol, @Param("val") String searchValue);

    List<Student> findByLikePage(@Param("start") Integer start, @Param("rows") Integer rows, @Param("col") String searchCol, @Param("val") String searchValue);

    Integer totalCount(@Param("col") String searchCol, @Param("val") String searchValue);

    Student change(@Param("id") Integer id);

    void changed(Student student);

    void delete(@Param("id") Integer id);
}
